package com.eportal.service;

import java.util.List;
import java.util.Map;

import com.eportal.domain.PayRedEnvRule;
import com.eportal.domain.PayWallet;
import com.eportal.domain.Sysopt;
import com.framework.jqgrid.JqGridPager;

public interface PayRedEnvRuleService {

	Object save(Object obj)throws Exception;

	Object get(Class clazz,Long id);

	Object get(String sql);
	
    void update(Object entity) throws Exception;

    List<Map<String, Object>> list(JqGridPager jqGridPager, StringBuffer sqlappend);

	Map<String, Object> addPayRedEnvRuleMethod(String showTime, String expiredTime, PayRedEnvRule payRedEnvRule);

	Map<String, Object> updatePayRedEnvRuleMethod(String showTime, String expiredTime, PayRedEnvRule payRedEnvRule);

	Map<String, Object> upMethod(String sid, String redId);

	Map<String, Object> offMethod(String sid);

	Map<String, Object> rechargeMethod(String type, String agtCode, String changeAmount, String comm);

	List<Map<String, Object>> countQuery(String string);

	PayWallet getPayWallet(String agtCode);

}
